//
//  BVFilterUtil.m
//  BVCommon
//
//  Created by xiute on 2019/10/25.
//

#import "BVFilterUtil.h"

@implementation BVFilterUtil

+ (NSString *)colorImagePathWithType:(BVFilterUtilType)type {
    NSBundle *commonBundle = [BVBundle bundleWithClass:self.class name:BV_BUNDLE_COMMON_MODULE];
    NSString *filePath = [commonBundle.bundlePath stringByAppendingPathComponent:@"PLShortVideoKit.bundle/colorFilter"];
    switch (type) {
        case BVFilterUtilTypeOne:
            filePath = [filePath stringByAppendingPathComponent:@"1960s/filter.png"];
            break;
        case BVFilterUtilTypeTwo:
            filePath = [filePath stringByAppendingPathComponent:@"sunny/filter.png"];
            break;
        case BVFilterUtilTypeThree:
            filePath = [filePath stringByAppendingPathComponent:@"good/filter.png"];
            break;
        default:
            filePath = nil;
            break;
    }
    return filePath;
}

@end
